import { createRouter, createWebHistory, createWebHashHistory } from 'vue-router'
import Simulate from '../views/Simulate.vue'

const router = createRouter({
  // history: createWebHistory(import.meta.env.BASE_URL),
  history: createWebHashHistory(),
  routes: [
    {
      path: '/',
      name: 'Simulate',
      component: Simulate
    },
    {
      path: '/car',
      name: 'Car',
      component: () => import('../views/CarSimulate.vue')
    },
    {
      path: '/fire',
      name: 'FireSimulate',
      component: () => import('../views/FireSimulate.vue')
    },
    {
      path: '/flood',
      name: 'FloodSimulate',
      component: () => import('../views/FloodSimulate.vue')
    },
    {
      path: '/info',
      name: 'InfoSimulate',
      component: () => import('../views/InfoSimulate.vue')
    },
  ]
})

export default router
